package com.miyake.dsp.filter;

public class EpsilonFilter {
	private double[] data;
	private double epsilon;

	public EpsilonFilter(double[] in, double epsilon) {
		this.data = in;
		this.epsilon = epsilon;
	}
	
	public double[] getFiltered() {
		double[] ret = new double[data.length];
		int length = 3;
		double[] op = new double[length];
		
		for (int i = 0; i < data.length; i++) {
			
			for (int j = 0; j < length; j++) {
				ret[i] += data[i-j] * op[j];
			}
		}
		
		return ret;
	}
}
